package star.cloud.asme.asmePerson.asmePersonTrain.asmePersonTrainRecord;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.Entity;
import jakarta.persistence.Transient;
import lombok.*;
import star.cloud.asme.asmePerson.asmePersonTrain.asmePersonTrainCourse.AsmePersonTrainCourse;
import star.cloud.asme.base.mybatis.IBaseEntity;
import star.cloud.asme.system.user.User;

import java.time.LocalDateTime;

@EqualsAndHashCode(callSuper = true)
@Data
@Builder
@NoArgsConstructor(force = true)
@AllArgsConstructor
@Entity(name = "senpec_asme_person_train_record")
@TableName("senpec_asme_person_train_record")
public class AsmePersonTrainRecord extends IBaseEntity<AsmePersonTrainRecord> {
    private Long asmePersonTrainCourseId;
    private LocalDateTime startTime;
    private LocalDateTime endTime;
    private String username;
    @Transient
    @TableField(exist = false)
    private User user;
    @Transient
    @TableField(exist = false)
    private AsmePersonTrainCourse asmePersonTrainCourse;
}
